1_Quantum_Random_Number_Generator
Quantum Random Number Generator (QRNG)
Description
This project implements a Quantum Random Number Generator (QRNG) using Qiskit. It leverages the principles of quantum mechanics, specifically superposition, to generate truly random numbers. Unlike classical pseudo-random number generators that rely on deterministic algorithms, QRNGs produce numbers that are fundamentally unpredictable.
Setup
-
Install Python: Make sure you have Python 3.6 or later installed.
-
Install Qiskit: Open your terminal or command prompt and install the Qiskit library:
bash pip install qiskit
How to Run
-
Navigate to this directory in your terminal.
-
Run the
qrng.pyscript with a command-line argument specifying the number of bits for the random number. For example, to generate an 8-bit random number:bash python qrng.py 8If you don't provide an argument, it will default to generating a 4-bit random number.